/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "amaus")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Amaus.findAll", query = "SELECT a FROM Amaus a"),
    @NamedQuery(name = "Amaus.findByAauide", query = "SELECT a FROM Amaus a WHERE a.aauide = :aauide"),
    @NamedQuery(name = "Amaus.findByAaudsc", query = "SELECT a FROM Amaus a WHERE a.aaudsc = :aaudsc"),
    @NamedQuery(name = "Amaus.findByAaulog", query = "SELECT a FROM Amaus a WHERE a.aaulog = :aaulog")})
public class Amaus implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "aauide")
    private Integer aauide;
    @Column(name = "aaudsc")
    private String aaudsc;
    @Column(name = "aaulog")
    private String aaulog;

    public Amaus() {
    }

    public Amaus(Integer aauide) {
        this.aauide = aauide;
    }

    public Integer getAauide() {
        return aauide;
    }

    public void setAauide(Integer aauide) {
        this.aauide = aauide;
    }

    public String getAaudsc() {
        return aaudsc;
    }

    public void setAaudsc(String aaudsc) {
        this.aaudsc = aaudsc;
    }

    public String getAaulog() {
        return aaulog;
    }

    public void setAaulog(String aaulog) {
        this.aaulog = aaulog;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (aauide != null ? aauide.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Amaus)) {
            return false;
        }
        Amaus other = (Amaus) object;
        if ((this.aauide == null && other.aauide != null) || (this.aauide != null && !this.aauide.equals(other.aauide))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.ud.modelo.Amaus[ aauide=" + aauide + " ]";
    }
    
}
